<%-- 
    Document   : admin-addforumBody
    Created on : Apr 30, 2011, 3:33:55 PM
    Author     : Roaa
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  prefix="ds" uri="/WEB-INF/tlds/displaycategories.tld" %>
<%@taglib  uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add Forum</title>
    </head>
    <body>
        <div id="page-body">
            <html:form action="admForum?actionType=saveAddForum" >

                <h2>Add Forum >></h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <br />
                <table width="40%">
                    <tr>
                        <td>Category:</td>
                        <td><html:select property="category">
                                <logic:iterate id="cat" name="admForumBean" property="categories">
                                    <html:option value="${cat}"><bean:write name="cat"/></html:option>
                                </logic:iterate>
                            </html:select>
                        </td>
                    </tr>
                    <tr>
                        <td>Forum name:</td>
                        <td><html:text property="name"></html:text></td>
                    </tr>
                    <tr>
                        <td>Forum description:</td>
                        <td>
                            <html:text property="desc"></html:text>

                        </td>
                    </tr>

                </table>
                <html:submit value="Add Forum"></html:submit>
            </html:form>
        </div>
    </body>
</html>
